package com.group01.community.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group01.community.entity.ZyRoom;
import com.group01.community.entity.vo.ZyRoomVo;
import com.group01.community.mapper.ZyRoomMapper;
import com.group01.community.service.ZyRoomService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 房间  服务实现类
 * </p>
 *
 * @author iuoly
 * @since 2022-07-04
 */
@Service
public class ZyRoomServiceImpl extends ServiceImpl<ZyRoomMapper, ZyRoom> implements ZyRoomService {

    @Autowired
    private ZyRoomMapper zyRoomMapper;

    @Override
    public IPage<ZyRoomVo> getRoomPage(int curr, int size, ZyRoom zyRoom) {
        return zyRoomMapper.getRoomPage(new Page<>(curr, size), zyRoom);
    }
}
